<?php
/*
 *  Copyright (C) 2009 Mauro Rocco "fireantology@gmail.com"
 *
 *  This file is part of PTwix.
 *
 *  PTwix is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  PTwix is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with PTwix.  If not, see <http://www.gnu.org/licenses/>.
 */

$username="twitteruser";
$password="twitterpass";
$url_path="http://www.mysite.com/ptwix/";
$abs_path="/var/www/mysite.com/htdocs/ptwix/cache/";

include_once '../core/PtwiX.php';
$PtwiX=new PtwiX($_POST['instance_name'],$username,$password,$url_path,$abs_path, $_POST['timeline'],$_POST['theme']);
$PtwiX->setSearchString($_POST['search_string']);
echo $PtwiX->getData($_POST['timeline']);
?>    
  
